﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Article.aspx.cs" Inherits="Pages_Article" MasterPageFile="~/Admin/MasterPage.master" Title="文章管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="2011px" BoxWidth="440px" Url="ArticleForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加文章</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvArticle" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="CatalogID" HeaderText="类别编号" SortExpression="CatalogID" />
            <asp:BoundField DataField="CatalogInnerCode" HeaderText="类别内部代码" SortExpression="CatalogInnerCode" />
            <asp:BoundField DataField="BranchInnerCode" HeaderText="分支内部代码" SortExpression="BranchInnerCode" />
            <asp:BoundField DataField="Title" HeaderText="标题" SortExpression="Title" />
            <asp:BoundField DataField="SubTitle" HeaderText="" SortExpression="SubTitle" />
            <asp:BoundField DataField="ShortTitle" HeaderText="" SortExpression="ShortTitle" />
            <asp:BoundField DataField="TitleStyle" HeaderText="标题样式" SortExpression="TitleStyle" />
            <asp:BoundField DataField="ShortTitleStyle" HeaderText="样式" SortExpression="ShortTitleStyle" />
            <asp:BoundField DataField="Author" HeaderText="作者" SortExpression="Author" />
            <asp:BoundField DataField="Type" HeaderText="类型" SortExpression="Type" />
            <asp:BoundField DataField="Attribute" HeaderText="属性" SortExpression="Attribute" />
            <asp:BoundField DataField="URL" HeaderText="网址" SortExpression="URL" />
            <asp:BoundField DataField="RedirectURL" HeaderText="重定向网址" SortExpression="RedirectURL" />
            <asp:BoundField DataField="Status" HeaderText="状态" SortExpression="Status" />
            <asp:BoundField DataField="TopFlag" HeaderText="顶部标记" SortExpression="TopFlag" />
            <asp:BoundField DataField="TopDate" HeaderText="顶部日期" SortExpression="TopDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="TemplateFlag" HeaderText="模版标记" SortExpression="TemplateFlag" />
            <asp:BoundField DataField="Template" HeaderText="模版" SortExpression="Template" />
            <asp:BoundField DataField="CommentFlag" HeaderText="注释标记" SortExpression="CommentFlag" />
            <asp:BoundField DataField="CopyImageFlag" HeaderText="复制图片标记" SortExpression="CopyImageFlag" />
            <asp:BoundField DataField="OrderFlag" HeaderText="订单标记" SortExpression="OrderFlag" />
            <asp:BoundField DataField="ReferName" HeaderText="" SortExpression="ReferName" />
            <asp:BoundField DataField="ReferURL" HeaderText="" SortExpression="ReferURL" />
            <asp:BoundField DataField="Keyword" HeaderText="关键字" SortExpression="Keyword" />
            <asp:BoundField DataField="RelativeArticle" HeaderText="关系" SortExpression="RelativeArticle" />
            <asp:BoundField DataField="RecommendArticle" HeaderText="推荐文章" SortExpression="RecommendArticle" />
            <asp:BoundField DataField="ReferType" HeaderText="" SortExpression="ReferType" />
            <asp:BoundField DataField="ReferSourceID" HeaderText="" SortExpression="ReferSourceID" />
            <asp:BoundField DataField="HitCount" HeaderText="点击数量" SortExpression="HitCount" />
            <asp:BoundField DataField="StickTime" HeaderText="" SortExpression="StickTime" />
            <asp:BoundField DataField="PublishFlag" HeaderText="发布标记" SortExpression="PublishFlag" />
            <asp:BoundField DataField="Priority" HeaderText="优先级" SortExpression="Priority" />
            <asp:BoundField DataField="LockUser" HeaderText="锁定用户" SortExpression="LockUser" />
            <asp:BoundField DataField="PublishDate" HeaderText="发布日期" SortExpression="PublishDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="DownlineDate" HeaderText="下线日期" SortExpression="DownlineDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ArchiveDate" HeaderText="存档日期" SortExpression="ArchiveDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="WorkFlowID" HeaderText="流程编号" SortExpression="WorkFlowID" />
            <asp:BoundField DataField="IssueID" HeaderText="是否发布编号" SortExpression="IssueID" />
            <asp:BoundField DataField="Logo" HeaderText="日志" SortExpression="Logo" />
            <asp:BoundField DataField="PageTitle" HeaderText="页标题" SortExpression="PageTitle" />
            <asp:BoundField DataField="ClusterSource" HeaderText="集群源" SortExpression="ClusterSource" />
            <asp:BoundField DataField="Prop1" HeaderText="属性1" SortExpression="Prop1" />
            <asp:BoundField DataField="Prop2" HeaderText="属性2" SortExpression="Prop2" />
            <asp:BoundField DataField="Prop3" HeaderText="属性3" SortExpression="Prop3" />
            <asp:BoundField DataField="Prop4" HeaderText="属性4" SortExpression="Prop4" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ArticleForm.aspx?ID={0}" Height="2011px" Text="编辑" Width="440px" Title="编辑文章">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.CMS.Article"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.CMS.Article">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>